import junit.framework.TestCase;

public class HexGridTest extends TestCase {

	public void testGet_neighborsIntArray() {
		fail("Not yet implemented");
	}

	public void testValidLocation() {
		HexGrid grid1 = new HexGrid(5,5,5);
		int [] temp = new int[3];
		for(int r = 0; r<5; r++){
			temp[0] = r;
			for(int c=0;c<5; c++){
				temp[1] = c;
				for(int d=0; d<5; d++){
					temp[2] = d;
					assertTrue(grid1.validLocation(temp));
				}
			}
		}
		
		int[][] neg = {{-1,0,0},{0,-1,0},{0,0,-1},{-1,-1,-1}};
		for(int i=0; i<neg.length; i++){
			assertFalse(grid1.validLocation(neg[i]));
		}
		
		int[][] outOfBounds = {{5,5,5},{1,1,5},{1,5,1},{5,1,1}};
		for(int i=0; i<outOfBounds.length; i++){
			assertFalse(grid1.validLocation(outOfBounds[i]));
		}
	}

}
